﻿using System;

public partial class api : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DateTime now = DateTime.Now;
        int min = now.Minute % 10;
        min = (7 - min + 10) % 10;
        int sec = 5 - now.Second;

        int time = (min * 60 + sec + 600) % 600;
        

        Wapper w = new Wapper();
        w.end = time;
        
        Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(w));
        Response.End();
    }
}

public class Wapper
{
    public int end;
}
